<!--强制修改用户-->
<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">实名认证</h1>
</div>
<div class="wrapper-sm" ng-controller="userReviseController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold"></div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label pull-left m-l m-r ">关键字</label>
                <div class="col-md-3">
                    <input ng-model="detail.userName" id="table_userRevise_detail_userName" type="text" class="form-control input-sm"
                        placeholder="请填写关键字" disabled>
                </div>    
                <label class="control-label pull-left m-l m-r ">车牌号</label>
                <div class="col-md-3">
                    <input ng-model="detail.carCode" id="table_userRevise_detail_userName" type="text" class="form-control input-sm" name="carCode"
                        ng-pattern="/^[\u4e00-\u9fa5]{1}[a-zA-Z]{1}[a-zA-Z_0-9]{5}$/" placeholder="请填写车牌号">
                </div>                       
            </div>
            <div class="form-group">
                <label class="control-label pull-left m-l m-r ">角色</label>
                <div class='col-md-6'>
                    <div class="checkbox">
                        <label class="inline m-r-xl curpoint" ng-repeat="row in rolesList">
                            <input type="checkbox"  name="{{row.id}}" checklist-model="detail.rolesCheckedList" checklist-value="row.id"> {{row.name}}
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label pull-left m-l m-r ">实名头像</label>
                <div class="col-md-4">
                    <div class="img-thumbnail img-borders">
                        <img class="img-responsive" src="{{detail.realHeadImage}}" id="RealHead" style="width:128px;height:128px"/>
                        <div class="tools tools-bottom">
                            <b>{{detail.realHeadImageStatus}}</b>
                            <div ng-hide="detail.realHeadUpload">
                                <input type="file" id="realHead" name="realHead"  style="display: none;" />
                                <a onclick="realHead.click()"><i class="glyphicon glyphicon-folder-open"></i></a>
                                <a ng-click="detail.uploaderRealHead()" id="uploaderRealHead" style="display:none">
                                    <i class="glyphicon glyphicon-upload red-remove" id="RealHeadUploadSuccess"></i>
                                </a>
                            </div>
                            <div ng-show="detail.realHeadImageTool">
                                <a ng-hide="detail.clickOkPassState" ng-click="detail.clickOkPass('RealHeadImage')">
                                    <i ng-show="detail.clickRemovePassState" class="glyphicon glyphicon-ok-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickOkPassState" ng-click="detail.clickOk('RealHeadImage')">
                                    <i ng-show="detail.clickRemovePassState" class="glyphicon glyphicon-ok"></i>
                                </a>
                                <a ng-hide="detail.clickRemovePassState" ng-click="detail.clickRemovePass('RealHeadImage')">
                                    <i ng-show="detail.clickOkPassState" class="glyphicon glyphicon-remove-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickRemovePassState" ng-click="detail.clickRemove('RealHeadImage')">
                                    <i ng-show="detail.clickOkPassState" class="glyphicon glyphicon-remove red-remove"></i>
                                </a>

                            </div>
                        </div>
                    </div>
                </div>

                <label class="col-md-1 control-label">身份证</label>
                <div class="col-md-4">
                    <div class="img-thumbnail img-borders">
                        <img class="img-responsive" src="{{detail.idCardImage}}" id="IDCard" style="width:128px;height:128px"/>
                        <div class="tools tools-bottom">
                            <b>{{detail.idCardImageSatus}}</b>
                            <div ng-hide="detail.idCardUpload">
                                <input type="file" id="idCard" name="idCard"  style="display: none;" />
                                <a onclick="idCard.click()"><i class="glyphicon glyphicon-folder-open"></i></a>
                                <a ng-click="detail.uploaderIdCard()" id="uploaderIDCardRemove" style="display:none">
                                    <i class="glyphicon glyphicon-upload red-remove" id="IDCardUploadSuccess"></i>
                                </a>
                            </div>
                            <div ng-show="detail.idCardImageTool">
                                <a ng-hide="detail.clickIdCardOkPassState" ng-click="detail.clickOkPass('IDCardImage')">
                                    <i ng-show="detail.clickIdCardRemovePassState" class="glyphicon glyphicon-ok-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickIdCardOkPassState" ng-click="detail.clickOk('IDCardImage')">
                                    <i ng-show="detail.clickIdCardRemovePassState" class="glyphicon glyphicon-ok"></i>
                                </a>
                                <a ng-hide="detail.clickIdCardRemovePassState" ng-click="detail.clickRemovePass('IDCardImage')">
                                    <i ng-show="detail.clickIdCardOkPassState" class="glyphicon glyphicon-remove-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickIDCardRemovePassState" ng-click="detail.clickRemove('IDCardImage')">
                                    <i ng-show="detail.clickIDCardOkPassState" class="glyphicon glyphicon-remove red-remove"></i>
                                </a>

                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-1 control-label">驾驶证</label>
                <div class="col-md-4">
                    <div class="img-thumbnail img-borders">
                        <img class="img-responsive" src="{{detail.drivingLicenseImage}}" id="DrivingLicense" style="width:128px;height:128px"/>
                        <div class="tools tools-bottom">
                            <b>{{detail.drivingLicenseImageStatus}}</b>
                            <div ng-hide="detail.drivingLicenseUpload">
                                <input type="file" id="uploaderDriving" name="uploaderDriving"  style="display: none;" />
                                <a onclick="uploaderDriving.click()"><i class="glyphicon glyphicon-folder-open"></i></a>
                                <a ng-click="detail.uploaderDrivingLicense()" id="uploaderDriveRemove" style="display:none">
                                    <i class="glyphicon glyphicon-upload red-remove" id="DrivingLicenseUploadSuccess"></i>
                                </a>
                            </div>
                            <div ng-show="detail.drivingLicenseImageTool">
                                <a ng-hide="detail.clickDrivingLicenseOkPassState" ng-click="detail.clickOkPass('DrivingLicenseImage')">
                                    <i ng-show="detail.clickDrivingLicenseRemovePassState" class="glyphicon glyphicon-ok-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickDrivingLicenseOkPassState" ng-click="detail.clickOk('DrivingLicenseImage')">
                                    <i ng-show="detail.clickDrivingLicenseRemovePassState" class="glyphicon glyphicon-ok"></i>
                                </a>
                                <a ng-hide="detail.clickDrivingLicenseRemovePassState" ng-click="detail.clickRemovePass('DrivingLicenseImage')">
                                    <i ng-show="detail.clickDrivingLicenseOkPassState" class="glyphicon glyphicon-remove-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickDrivingLicenseRemovePassState" ng-click="detail.clickRemove('DrivingLicenseImage')">
                                    <i ng-show="detail.clickDrivingLicenseOkPassState" class="glyphicon glyphicon-remove red-remove"></i>
                                </a>

                            </div>
                        </div>

                    </div>
                </div>
                <label class="col-md-1 control-label">行驶证</label>
                <div class="col-md-4">
                    <div class="img-thumbnail img-borders">
                        <img class="img-responsive" src="{{detail.vehicleLicenseImage}}"  id="VehicleLicense" style="width:128px;height:128px"/>
                        <div class="tools tools-bottom">
                            <b>{{detail.vehicleLicenseImageStatus}}</b>
                            <div ng-hide="detail.vehicleLicenseUpload">
                                <input type="file" id="f" name="f"  style="display: none;" />
                                <a onclick="f.click()"><i class="glyphicon glyphicon-folder-open"></i></a>
                                <a ng-click="detail.uploaderVehicleLicense()" id="ssss" style="display:none">
                                    <i class="glyphicon glyphicon-upload red-remove" id="VehicleLicenseUploadSuccess"></i>
                                </a>
                                
                            </div>

                            <div ng-show="detail.vehicleLicenseImageTool">
                                <a ng-hide="detail.clickVehicleLicenseOkPassState" ng-click="detail.clickOkPass('VehicleLicenseImage')">
                                    <i ng-show="detail.clickVehicleLicenseRemovePassState" class="glyphicon glyphicon-ok-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickVehicleLicenseOkPassState" ng-click="detail.clickOk('VehicleLicenseImage')">
                                    <i ng-show="detail.clickVehicleLicenseRemovePassState" class="glyphicon glyphicon-ok"></i>
                                </a>
                                <a ng-hide="detail.clickVehicleLicenseRemovePassState" ng-click="detail.clickRemovePass('VehicleLicenseImage')">
                                    <i ng-show="detail.clickVehicleLicenseOkPassState" class="glyphicon glyphicon-remove-circle blue-pass"></i>
                                </a>
                                <a ng-show="detail.clickVehicleLicenseRemovePassState" ng-click="detail.clickRemove('VehicleLicenseImage')">
                                    <i ng-show="detail.clickVehicleLicenseOkPassState" class="glyphicon glyphicon-remove red-remove"></i>
                                </a>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
            <div class="row form-group">
                <label class="control-label pull-left m-l m-r">说明</label>
                <div class="col-md-6">
                    <textarea rows="4" class="form-control" id="fa-searchz" ng-model="detail.message" placeholder="请输入关键字"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label pull-left m-l m-r"></label>
                <button ng-click="detail.click()" id="table_userRevise_detail_click" class="btn m-b-xs btn-sm btn-info btn-addon ">
                    <i class="fa fa-plus"></i>添加
                </button>
                <button ui-sref="app.management.user" class="pull-right-xs btn btn-sm btn-warning btn-addon ">
                    <i class="fa fa-reply"></i>返回
                </button>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            设置列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" id="table_userRevise_gridOptions" ui-grid-pagination ui-grid-auto-resize>
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
    </div>
</div>